﻿using Company.Shell.Models;

namespace Company.Shell.Interfaces
{
    /// <summary>
    /// 房间缓存管理接口
    /// </summary>
    public interface ICacheManager
    {
        /// <summary>
        /// 所有房间的缓存数据
        /// </summary>
        List<CacheEntity> Caches { get; }
        /// <summary>
        /// 添加一个缓存
        /// </summary>
        /// <param name="entity"></param>
        void Add(CacheEntity entity);
        /// <summary>
        /// 保存缓存
        /// </summary>
        void Save();
    }
}
